package main
import(
	"fmt"
	"sync/atomic"
)

var value int32

func SetValue(delta int32) {
		v := value
		atomic.CompareAndSwapInt32(&value, v, (v+delta))	
}

func main() {
	var iTmp int
	fmt.Printf("iTmp=%v\n", iTmp)

	var iTmp1 int32
	SetValue(iTmp1)	
}
 

 
